package com.tul.vapp.servicecenter.common;

/**
 * Created by jyliu on 2016/10/22.
 */
public class ErrorCodeConstant {
	/**
	 * 系统未知异常代码
	 */
	public static final String SYS_UNKNOWN = "P03S00000";
	/**
	 * 用户没有权限
	 */
	public static final String SYS_USER_UN_AUTHORIZED = "P03S00010";

	/**
	 * 用户没有登录或者登录已经过期失效
	 */
	public static final String SYS_USER_NOT_LOGIN_OR_SESSION_TIMEOUT = "P03S00011";

	/**
	 * 数据库操作失败
	 */
	public static final String SYS_DB_ACCESS_ERROR = "P03S00020";

	/**
	 * 需要修改的数据已经过期 乐观锁问题
	 */
	public static final String SYS_DB_MODIFIED_DATA_EXPIRIED = "P03S00021";

	/**
	 * 生成报表失败
	 */
	public static final String SYS_REPORT_GENERATE_FAILED_UNKNOWN = "P03S00030";

	/**
	 * 未知业务异常
	 */
	public static final String BIZ_UNKNOWN = "P03B00000";

	/**
	 * 条件为空
	 */
	public static final String BIZ_QUERY_CONDITION_IS_EMPTY = "P03B00020";

	/**
	 * 查询对象不存在
	 */
	public static final String BIZ_QUERY_OBJECT_NOT_FOUND = "P03B00030";

	/**
	 * 用户名已经存在
	 */
	public static final String BIZ_USER_ID_ALREADY_EXISTS = "P03B00100";

	/**
	 * 用户名或者密码错误
	 */
	public static final String BIZ_USER_ID_PASSWORD_INVALID = "P03B00101";

	/**
	 * 用户登录尝试次数过多
	 */
	public static final String BIZ_USER_ID_PASSWORD_INVALID2 = "P03B00102";

	/**
	 * 当前帐号登录端过多
	 */
	public static final String BIZ_USER_ID_LOGIN_CLIENT_MORE = "P03B00103";

	/**
	 * 用户名或者密码错误, 但是显示最多错误次数
	 */
	public static final String BIZ_USER_ID_PASSWORD_INVALID3 = "P03B00104";
	/**
	 * 帐号已锁定
	 */
	public static final String BIZ_ACCOUNT_LOCKED = "P03B00105";

	/**
	 * 用户id不存在错误
	 */
	public static final String BIZ_USER_ID_DELETE_NOT_EXISTS = "P03B00110";

	/**
	 * 在线用户不可删除
	 */
	public static final String BIZ_USER_ID_DELETE_ONLINE_FORBIDDEN = "P03B00111";

	/**
	 * 修改密码时旧密码错误
	 */
	public static final String BIZ_USER_ID_MODIFY_OLD_PASSWORD_INVALID = "P03B00112";

	/**
	 * 修改密码时旧密码错误
	 */
	public static final String BIZ_USER_ID_MODIFY_OLD_PASSWORD_INVALID2 = "P03B00113";

	/**
	 * 管理域名称已存在错误
	 */
	public static final String BIZ_LOGIC_DOMAIN_NAME_EXISTS = "P03B00120";

	/**
	 * 管理域不存在
	 */
	public static final String BIZ_LOGIC_DOMAIN_NOT_EXISTS = "P03B00130";
	/**
	 * 不能锁定管理员
	 */
	public static final String BIZ_ADMIN_LOCK_FORBIDDEN = "P03B00140";
}
